//
//  DCIMGroupManager.h
//  xmppBase
//
//  Created by striby on 16/1/12.
//  Copyright © 2016年 com.dc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DCXMPPTool.h"

#define GroupDomainFirstName @"conference"

#define kDidFetchModeratorList @"kDidFetchModeratorList"

#define kDidCreatedGroupSuccessed @"kDidCreatedGroupSuccessed"

#define kDidFetchConfigurationForm @"kDidFetchConfigurationForm"

#define kDidJoinGroupSuccessed @"kDidJoinGroupSuccessed"

@interface DCIMGroupManager : NSObject<XMPPRoomStorage,XMPPRoomDelegate,XMPPMUCDelegate>

@property(nonatomic,strong)dispatch_queue_t groupQue;

/**
 *  获取单例对象
 */
+(DCIMGroupManager*)shareInstance;

/**
 *  创建房间
 */
-(XMPPRoom*)createRoomWithRoomJid:(XMPPJID*)roomId;

-(XMPPRoom*)joinRoomWithRoomJid:(XMPPJID*)roomId;
/**
 *  获取房间昵称
 *
 */
-(NSString*)getRoomNameWithRoomJid:(XMPPJID*)roomId;



//-(void)saveRoomConfigInStorageWithInfo:(id)config withRoom:(XMPPRoom*)room;

//-(id)getRoomConfigFormStorageWithInfo:(XMPPJID*)roomJid;

-(void)queryItemsJid:(NSString *)jid;
-(void)queryInfoJid:(NSString *)jid;
@end
